酒店基础推送 | 商户->百度
更新时间:2023-07-27
酒店基础数据【商户即时推送百度】
字段标签 | 字段名称 | 字段说明 | 字段要求 | 长度 | 是否必须 | |
---|---|---|---|---|---|---|
1 | detail | 详情数据集合 | object | - | 是 | |
2 | detail.basic | 基础数据 | object | - | 是 | |
3 | tid | 酒店id | 酒店唯一标识 | string | 64 | 是 |
4 | poi_name | 酒店名称 | 准确的酒店名称,例如:同阳酒店、源达酒店等 | string | 256 | 是 |
5 | poi_address | 酒店地址 | 详细的地址,例如:辽宁省,沈阳市,皇姑区,黄河北大街xxx号 | string | 256 | 是 |
6 | latitude | 酒店所在地纬度 | 百度坐标(BD09MC) | float | - | 是 |
7 | longitude | 酒店所在地经度 | 百度坐标(BD09MC) | float | - | 是 |
8 | city | 所在地城市 | 北京、上海(传入城市名称) | string | 64 | 是 |
9 | tel | 酒店联系方式 | string | 64 | 是 | |
10 | status | 营业状态 | 参考附录:酒店基础数据状态(status)取值说明 | int | - | 是 |
11 | detail.detail_info | 酒店数据 | object | - | 是 | |
12 | detail_info.hotel | 详情数据 | object | - | 是 | |
13 | overall_rating | 综合评分 | 0-5 分,如:3,4.5,2 等 | float | - | 否 |
14 | service_rating | 服务评分 | 0-5 分,如:3,4.5,2 等 | float | - | 否 |
15 | category | 类别 | 客栈,宾馆,五星级,招待所等,多个 以”空格”分开 | string | 64 | 否 |
16 | aoi | 商圈 | 五道口,多个以”;”分开 | string | 64 | 否 |
17 | source_url | 合作方酒店url | 用来溯源比对原始数据 | string | 256 | 否 |
18 | brand | 酒店品牌 | 如家,汉庭等 | string | 64 | 否 |
19 | hygiene_rating | 卫生评分 | 0-5 分,如:3,4.5,2 等 | float | - | 否 |
20 | facility_rating | 设施评分 | 0-5 分,如:3,4.5,2 等 | float | - | 否 |
21 | level | 分级信息 | 参考附录:酒店基础数据状态(level)取值说明 | int | - | 是 |
22 | inner_facility | 内部设施 | 例:毯子;被子;公用区wifi;空调;手动窗帘(注:英文";"分割,具体可根据服务方内部相关字段填写) | string | 256 | 否 |
23 | hotel_facility | 酒店整体设施 | 例:餐饮;游戏;娱乐;购物;商务中心;宴会;会议(注:英文";"分割,具体可根据服务方内部相关字段填写) | string | 256 | 否 |
24 | hotel_service | 酒店可用服务 | 例:行李寄存;叫醒服务;24小时前台;免费停车场(注: 英文";"分割,具体可根据服务方内部相关字段填写) | string | 256 | 否 |
25 | checkin_policy | 酒店入住信息 | 必须包含 checkin,checkout, service_time 三个字段,字段间;分割 (checkin 12:00 前;checkout 21:00 前;service_time 9:00-23:00) | string | 256 | 否 |
26 | environment_exterior | 外部环境 | 用;分割,酒店周边景点,地铁站等地标 | string | 256 | 否 |
27 | short_comm | 短评 | 一句话短评,50 字以内 | string | 256 | 否 |
28 | reservation_call | 预订电话 | string | 64 | 否 | |
29 | county | 行政区 | 海淀区 | string | 64 | 否 |
30 | hotel_introduction | 酒店简介 | 酒店的简单介绍 | string | 64 | 否 |
31 | hotel. indentify | 固定传入hotel | string | 64 | 是 | |
32 | detail_info.hotelcomment | 酒店评论集合 | object | - | 是 | |
33 | comment_all_num | 评论总数 | int | - | 否 | |
34 | comment_yes_num | 推荐评论数量 | int | - | 否 | |
35 | comment_no_num | 不推荐评论数量 | int | - | 否 | |
36 | comment_url | 评论的原始链接 | string | 256 | 否 | |
37 | comment | 评论包 | array | - | 否 | |
38 | hotelcomment.indentify | 固定传入hotelcomment | string | 64 | 是 | |
39 | hotelcomment.comment | 评论内容集合 | array | - | 否 | |
40 | comment.content | 评论内容 | string | 1024 | 否 | |
41 | comment.date | 评论时间 | 例:2021-06-02 | string | 64 | 否 |
42 | comment.user_name | 用户昵称 | string | 64 | 否 | |
43 | comment.user_logo | 用户头像 | string | 256 | 否 | |
44 | comment.nick_user_recommend | 用户推荐 | 1 推荐,0 不推荐 | int | - | 否 |
45 | comment.overall_rating | 综合评分 | float | - | 否 | |
46 | comment.comment_photo | 评论图集合 | array | - | 否 | |
47 | timestamp | 评论时间(linux时间戳) | int | - | 否 | |
48 | detail_info . hotelphoto | 酒店头图集合 | object | - | 否 | |
49 | photo_exterior | 酒店扩展图 | array | - | 否 | |
50 | photo_url | 图片url | string | 否 | ||
51 | hotelphoto . indentify | 固定传入hotelphoto | string | 64 | 是 | |
52 | hotelphoto . photo_exterior | 酒店扩展图集合 | array | - | 否 | |
53 | photo_exterior.photo_score | 图片质量打分 | 满足头图质量的 100 分,其他图按质量赋 0-99 | float | - | 否 |
54 | photo_exterior.photo_type | 图片分类 | 房型图,外观图等 | string | 64 | 否 |
55 | photo_exterior.photo_tag | 图片标签 | 洗手间,大堂,沙发等 | string | 64 | 否 |
56 | photo_exterior.photo_room_id | 图片对应房型id | 图片能具体对应到房型时设置 | string | 64 | 否 |
57 | photo_exterior.photo_room_name | 图片对应房型名称 | 图片能具体对应到房型时设置 | string | 64 | 否 |
58 | photo_exterior.photo_room_tag | 图片对应房型标签 | 图片能具体对应到房型时设置 | string | 64 | 否 |
59 | photo_exterior.img_url | 扩展图链接地址 | string | 256 | 否 | |
60 | detail.extends_id | ceq关联id | 合作方tid关联同一家酒店ceq的tid | object | 否 | |
61 | extends_id.src | 关联ota来源 | 如ctrip,elong,qunar | string | 64 | 否 |
62 | extends_id.tid | 关联ota的tid | string | 64 | 否 | |
63 | extends_id.confidence | 关联tid置信度 | 95(机器作业),100(人工作业) | int | - | 否 |
64 | detail.everyday_lowest_price | 近7天每日房型房型最低价格 | 例:{"2022-04-22": {"room_type_name": "双床房","price": 88},"2022-04-23": {"room_type_name": "双床房","price": 88},....} | object | 7 | 否 |
(注:详情数据传入时需按照下方示例字段传入,相应字段无文字释意可传入空值且保留字段.)
推送数据样例:
(注:推送字段类型请按照上述字段说明正确填写)
{
"tp_name": "xiecheng",
"timestamp": "1630128216",
"salt": "1234",
"sign": "77a82e37e7288578c408742e31db45cf",
"content": {
"detail": {
"basic": {
"tid": "369673",
"poi_name": "北京歌华开元大酒店",
"poi_address": "北京市朝阳区北三环鼓楼外大街19号",
"latitude": 39.971402,
"longitude": 116.400311,
"city": "北京",
"tel": "",
"status": 1
},
"everyday_lowest_price": {
"2022-04-22": {
"room_type_name": "双床房",
"price": 88
},
"2022-04-23": {
"room_type_name": "双床房",
"price": 88
},
},
"detail_info": {
"hotel": {
"info": {
"overall_rating": 4.5,
"service_rating": 4.5,
"category": "其他",
"aoi": "森林湿地公园",
"price": "",
"business_state": "正常营业",
"source_url": "",
"source_url_mobile": "",
"brand": "",
"hygiene_rating": 4.5,
"facility_rating": 4.5,
"level": "6",
"inner_facility": "床具:毯子或被子 公用区wifi 空调 手动窗帘",
"hotel_facility": "",
"hotel_service": "行李寄存 叫醒服务 24小时前台 免费停车场",
"checkin_policy": "",
"hotel_type": "其它",
"open_year": "2018-05-01",
"environment_exterior": "森林湿地公园;鸽子窝公园;老虎石海上公园",
"hotel_flag": "1",
"id": "ctrip_2328835",
"short_comm": "酒店周边的环境很好,有一大片树林,空气好",
"reservation_call": "95010",
"reservation_url": "https:\/\/hotels.ctrip.com\/hotel\/2328835.html?allianceid=20407&sid=451676&utm_source=baidu&utm_medium=referral&utm_campaign=baidumaphotel",
"county": "{root.hotelStaticInfo.hotelLocation.locationName}",
"hotel_introduction": "北戴河望汐·乐园酒店坐落于森林湿地公园,不论您是商务出差还是休闲旅游酒店都是理想的下榻之处。",
"comment_all_num": 40,
"comment_yes_num": "",
"comment_no_num": "",
"comment_url": "https:\/\/hotels.ctrip.com\/hotel\/dianping\/2328835.html?Allianceid=20407&sid=451676&utm_source=baidu&utm_medium=referral&utm_campaign=baidumaphotel",
"reservation_url_mobile": "http:\/\/m.ctrip.com\/webapp\/Hotel\/HotelDetail\/2328835.html?Allianceid=20407&sid=451948&sourceid=1606",
"discount_url_mobile": "http:\/\/m.ctrip.com\/webapp\/Hotel\/HotelDetail\/2328835.html?Allianceid=20407&sid=451948&sourceid=1606",
"comment_url_mobile": "http:\/\/m.ctrip.com\/webapp\/Hotel\/HotelDetail\/2328835.html?Allianceid=20407&sid=451948&sourceid=1606"
},
"indentify": "hotel"
},
"hotelcomment": {
"info": {
"comment_num": 40,
"comment_all_num": 40,
"comment_yes_num": "",
"comment_no_num": "",
"comment_url": "https:\/\/hotels.ctrip.com\/hotel\/dianping\/2328835.html?Allianceid=20407&sid=451676&utm_source=baidu&utm_medium=referral&utm_campaign=baidumaphotel",
"comment_url_mobile": "http:\/\/m.ctrip.com\/webapp\/Hotel\/HotelDetail\/2328835.html?Allianceid=20407&sid=451948&sourceid=1606",
"comment": [{
"content": "酒店周边的环境很好,有一大片树林,空气好,安静",
"date": "2021-06-02",
"one_url": "https:\/\/hotels.ctrip.com\/hotel\/dianping\/2328835.html?Allianceid=20407&sid=451676&utm_source=baidu&utm_medium=referral&utm_campaign=baidumaphotel",
"user_name": "携程用户",
"user_logo": "https:\/\/hotel-pic.cdn.bcebos.com\/ctrip\/xiechenglvxinglogo180180_ec9348808cfce46fc62899e4f469b65c.jpg",
"nick_user_recommend": "1",
"overall_rating": "5",
"comment_photo": [{
"pic_url": "https:\/\/hotel-pic.cdn.bcebos.com\/ctrip\/230j170000010v1uzA7C5_R_550_412_12ab570d43f3fe6d7fb33d6a4f2eb681.jpg"
}],
"timestamp": 1622563200
}]
},
"indentify": "hotelcomment"
},
"hotelphoto": {
"info": {
"photo_exterior": [{
"img_url": "https:\/\/hotel-pic.cdn.bcebos.com\/ctrip\/200r0t000000ihp26075B_R_1080_540_29d12a27759e2e83a608d6f2bdb1565e.jpg",
"photo_url_mobilephone": "https:\/\/hotel-pic.cdn.bcebos.com\/ctrip\/200r0t000000ihp26075B_R_1280_720_ce71b14df54df200619112b66c8bfe43.jpg",
"photo_score": 10000,
"photo_type": "头图",
"photo_tag": "酒店图片",
"photo_room_id": "",
"photo_room_name": "",
"photo_room_tag": "",
"src": "ctrip"
}],
"photo_exterior_num": 6,
"photo_num": 6,
"photo_url": "=https:\/\/hotels.ctrip.com\/pic\/2328835.html?Allianceid=20407&sid=451676&utm_source=baidu&utm_medium=referral&utm_campaign=baidumaphotel"
},
"indentify": "hotelphoto"
}
},
"extends_id": [
{
"src":"ctrip",
"tid":"5213524",
"confidence": 100
},
{
"src":"elong",
"tid":"5123524",
"confidence": 100
},
{
"src":"qunar",
"tid":"1233424",
"confidence": 100
}
]
}
}
}
推送失败需重试:
推送失败返回需重试,最多重试2次
{
"errno": -1,
"errstr": "publish_2_bigpipe_fail",
"desc": "",
"data": {}
}
附录:
酒店基础数据状态(status)取值说明:
取值 | 释义 |
---|---|
1 | 营业中,正常营业 |
2 | 删除 |
3 | 暂停营业 |
5 | 筹建中 |
9 | 已停业,已关闭 |
level取值说明:
取值 | 星级表 | 无星级参考类型表 |
---|---|---|
0 | 无 | |
1 | 一星级 | |
2 | 二星级 | |
3 | 三星级 | |
4 | 四星级 | |
5 | 五星级 | |
6 | 经济型 | |
7 | 舒适型 | |
8 | 高档型 | |
9 | 豪华型 |
bd_book_type取值说明:
取值 | 释义 |
---|---|
1 | 自由可订 |
2 | 不可预订 |
3 | 部分日期可订 |
payment_type取值说明:
取值 | 释义 |
---|---|
1 | 现付非担保 |
2 | 现付担保 |
3 | 预付酒店 |
4 | 预付转担保 |
5 | 手机担保酒店 |